<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html 
      xmlns:f="http://java.sun.com/jsf/core" 
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:ui="http://java.sun.com/jsf/facelets" >
	  
<f:metadata>
	<f:viewParam name="del_centre" value="#{listeCentre.delete_centre}"/>
</f:metadata>

<h:head>
	<style type="text/css" media="all"> 
 		@import url(/style/feuilletableliste.css); 
 	</style>
</h:head>	  

<ui:composition template="contenu.xhtml"><ui:define name="droite">
	<h:outputText value="#{msg['centre.titreEntete']}"/><br/><br/>
	<h:dataTable value="#{listeCentre.listeCentre}" var="ligne"
	             styleClass="tableListe" captionClass="caption1" headerClass="heading" rowClasses="pair,impaire">
		 <h:column>
		  <f:facet name="header" >
			  <h:outputText value="#{msg['centre.labelNom']}"/>
		  </f:facet>
		  <h:outputText value="#{ligne.nomCentre}"/>
		 </h:column>
		 <h:column>
		  <f:facet name="header" >
			  <h:outputText value="#{msg['centre.labelVille']}"/>
		  </f:facet>
		  <h:outputText value="#{ligne.ville}"/>
		 </h:column>
		 <h:column>
		  <f:facet name="header" >
			  <h:outputText value="#{msg['centre.labelCodePostal']}"/>
		  </f:facet>
		  <h:outputText value="#{ligne.codePostal}"/>
		 </h:column>
		 <h:column align="center">
		  <f:facet name="header" >
			  <h:outputText value="#{msg['labelAfficher']}"/>
		  </f:facet>
		  <h:outputLink id="cmd_display_hidden" value="centre_affiche.xhtml">			    
		    <f:param name="dis_centre" value="#{ligne.idCentre}"/>
		    <f:param name="faces-redirect" value="true"/>	   
		    <f:param name="includeViewParams" value="true"/>
		    <h:graphicImage value="images/display.jpg" alt="#{msg['labelAfficher']} #{ligne.nomCentre}" title="#{msg['labelAfficher']} #{ligne.nomCentre}"/>
		  </h:outputLink>					  
		 </h:column>
		 <h:column>
		  <f:facet name="header" align="center">
			  <h:outputText value="#{msg['labelModifier']}"/>
		  </f:facet>
		  <h:outputLink id="cmd_edit_hidden" value="centre_modification.xhtml">			    
		    <f:param name="mod_centre" value="#{ligne.idCentre}"/>
		    <f:param name="faces-redirect" value="true"/>	   
		    <f:param name="includeViewParams" value="true"/>
		    <h:graphicImage value="images/edit.png" alt="#{msg['labelModifier']} #{ligne.nomCentre}" title="#{msg['labelModifier']} #{ligne.nomCentre}"/>
		  </h:outputLink>					  
		 </h:column>
		 <h:column>
		  <f:facet name="header" >
			  <h:outputText value="#{msg['labelSupprimer']}"/>
		  </f:facet>
		  <h:outputLink id="cmd_delete_hidden" value="centre_liste.xhtml" align="center">
		    <f:param name="del_centre" value="#{ligne.idCentre}"/>
		    <f:param name="faces-redirect" value="true"/>	   	   
		    <f:param name="includeViewParams" value="true"/>
			<h:graphicImage value="images/delete.png" alt="#{msg['labelSupprimer']}  #{ligne.nomCentre}" title="#{msg['labelSupprimer']}  #{ligne.nomCentre}"/>
		  </h:outputLink>			  
		 </h:column>
		</h:dataTable>
</ui:define></ui:composition>
</html>